cmake_minimum_required(VERSION 3.15)

include(proj.conf)

#add_subdirectory(components/TensorFlowLite)

find_package(bouffalo_sdk REQUIRED HINTS $ENV{BL_SDK_BASE})
sdk_add_compile_definitions(-DCONFIG_CLI_CMD_ENABLE)
sdk_add_compile_definitions(-DCONFIG_TEST_D)
sdk_add_compile_definitions(-DLV_LVGL_H_INCLUDE_SIMPLE)
sdk_add_compile_definitions(-DUSER_CODE)


file(GLOB_RECURSE sources
"${CMAKE_CURRENT_SOURCE_DIR}/components/model/*.cc"
)
# 添加头文件的引用路径（Add .h include directories）
sdk_add_include_directories(.)
sdk_add_include_directories(config 
components/model 
)

#打印输出日志
#message(STATUS '-----------test')
#message(STATUS ${sources})


target_sources(app PRIVATE ${sources})

sdk_set_main_file(main.c)

get_filename_component(PROJECT_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
project(${PROJECT_NAME})

